'Called when Client looses connection.
Args:
connector (Connection): Represents the connection.
reason (str): The reason for the failure.'

def clientConnectionLost(self, connector, reason):

    if (not (self.bot or (self.bot and self.bot.stopping))):
        self.retry(connector)
