code: def wait(self):
          
          self._returncode = self.process.wait()
          try:
              self.process.stderr.close()
          except:
              pass
          self.set_status(self.S_DONE, "status set to Done")
  
          return self._returncode
docs: Wait for child process to terminate. Set and return returncode attribute.