protected void OnError(Exception ex) { IncrementErrors(); // Complete the http request _transportLifetime.Complete(ex); }