'Called by Twisted when the cftp client process ends.'

def processEnded(self, reason):

    self._processEnded = True
    if self.onProcessEnd:
        (d, self.onProcessEnd) = (self.onProcessEnd, None)
        d.callback(None)
