self.transport.loseConnection()  def main():     import sys     from twisted.python import log      log.startLogging(sys.stdout)     factory = protocol.ServerFactory()     factory.protocol = ServerProtocol     reactor.listenTCP(0000, factory)     reactor.run()  if __name__ == '__main__':     main()  