'This is called when the child terminates.'

def processEnded(self, status):

    self.status = status
    self.lostProcess += 1
    self.pid = None
    self._callProcessExited(self._getReason(status))
    self.maybeCallProcessEnded()
