def closed(self):
        if self._exitCode or self._signal:
            reason = failure.Failure(ProcessTerminated(self._exitCode,
                                                       self._signal,
                                                       self.status))
        else:
            reason = failure.Failure(ProcessDone(status=self.status))
        processProtocol = self.processProtocol
        del self.processProtocol
        processProtocol.processEnded(reason)
dataset/ETHPy150Open sporsh/carnifex/carnifex/ssh/process.py/SSHProcess.closed/original