def connectionLost(self, reason):
    self.factory.unregister(self)
    self._log.info('Client disconnected: {peer}', peer=self.peer)
def connectionLost(self, reason):
    self.factory.unregister(self)
    self._log.info('Client disconnected: {peer}', peer=self.peer)