def dropSlave(self):
        if self.noseSlave is not None:
            try:
                self.sendToSlave(None) # Tell the slave we are finished with it.
            except (EOFError, IOError, socket.error), e:
                pass
            self.noseSlave = None
            self.toSlave.close()
            self.fromSlave.close()
            self.toSlave = self.fromSlave = None
        self.hasCrashed = True
Drop a slave after crash
dataset/ETHPy150Open ooici/pyon/pyon/util/insulate.py/TestSlave.dropSlave