Reset retryCount after opening connection.