'Emit a helpful log message when the connection is lost.'

def connectionLost(self, reason):

    log.msg(('%s    connection    lost    (HOST:%s    PEER:%s)' % (self.__class__.__name__, self._transportHost, self._transportPeer)))
    BinaryBoxProtocol.connectionLost(self, reason)
    self.transport = None
