Fix up RetryingRequestHandler to support cancellation.