'Called when an AMP connection attempt to the MUD server fails.
Args:
connector (Connector): Twisted Connector instance representing
this connection.
reason (str): Eventual text describing why connection failed.'

def clientConnectionFailed(self, connector, reason):

    if hasattr(self, 'server_restart_mode'):
        self.maxDelay = 2
    else:
        self.maxDelay = 10
    self.portal.sessions.announce_all('    ...')
    protocol.ReconnectingClientFactory.clientConnectionFailed(self, connector, reason)
