'The network connection has died; save the buffer of output
from the network and attempt to quit the process gracefully,
and then (after the reactor has spun) send it a KILL signal.'

def forwardingPortDisconnected(self, buffer):

    self.buffer = buffer
    self.transport.write('\x03')
    self.transport.loseConnection()
    reactor.callLater(0, self._reallyDie)
