retryFailures counts the number of consecutive failed connection
attempts.
retryFailures is reset to 0 whenever a connection is successfully
established, or the connection is restarted using the Restart verb.
The counter wraps when the maximum value is exceeded.