'Called when the AMP connection to the MUD server is lost.
Args:
connector (Connector): Twisted Connector instance representing
this connection.
reason (str): Eventual text describing why connection was lost.'

def clientConnectionLost(self, connector, reason):

    if hasattr(self, 'server_restart_mode'):
        self.portal.sessions.announce_all('    Server    restarting    ...')
        self.maxDelay = 2
    else:
        self.maxDelay = 10
        self.portal.sessions.announce_all('    ...    Portal    lost    connection    to    Server.')
    protocol.ReconnectingClientFactory.clientConnectionLost(self, connector, reason)
