def terminate(self): """Close pipe and terminate child process. """ self.close() super(Popen, self).terminate()