'Disconnect the protocol associated with this transport.'

def loseConnection(self):

    if self.closed:
        return
    self.closed = 1
    self.proto.inConnectionLost()
    self.proto.outConnectionLost()
    self.proto.errConnectionLost()
    self.proto.processEnded(failure.Failure(ProcessTerminated(255, None, None)))
