boolean hasNext = false;
try {
hasNext = keys.hasNext();
} catch (RuntimeException re) {
throw new RiakStreamingRuntimeException(re);
} finally {
// If there are no more keys, close the underlying HTTP resource
// and cancel the timer
if (!hasNext) {
cancel();