public void Dispose() { Reset(); foreach (var handler in RetryHandler?.GetInvocationList() ?? new Delegate[] { }) { RetryHandler -= (EventHandler)handler; } }