Reset the retryCount after a successful connection.