                  print("Killed")
  
      def set_final_status(self, returncode):
          """ Set the status bar output based on subprocess return code """
          if returncode == 0 or returncode == 3221225786:
              status = "Ready"
          elif returncode == -15:
              status = "Terminated - {}.py".format(self.command)
          elif returncode == -9:
              status = "Killed - {}.py".format(self.command)
 
</s> remove             except TimeoutExpired:
                print("Termination timed out. Killing Process...")
                self.process.kill()
 </s> add                 return

            print("Termination timed out. Killing Process...")
            for child in alive:
                child.kill()
            _, alive = psutil.wait_procs(alive, timeout=10)
            if not alive: </s> remove                     os.kill(self.process.pid, signal.CTRL_BREAK_EVENT)
 </s> add                     os.kill(
                        self.process.pid,
                        signal.CTRL_BREAK_EVENT) # pylint: disable=no-member </s> remove         self.consoleregex = {"loss": re.compile(r"([a-zA-Z_]+):.*?(\d+\.\d+)"),
                             "tqdm": re.compile(r"(\d+%|\d+/\d+|\d+:\d+|\d+\.\d+[a-zA-Z/]+)")}
 </s> add         self.consoleregex = {
            "loss": re.compile(r"([a-zA-Z_]+):.*?(\d+\.\d+)"),
            "tqdm": re.compile(r"(\d+%|\d+/\d+|\d+:\d+|\d+\.\d+[a-zA-Z/]+)")} </s> remove class FaceswapControl(object):
 </s> add class FaceswapControl():
        if returncode in (0, 3221225786):
                  print("Killed")
  
      def set_final_status(self, returncode):
          """ Set the status bar output based on subprocess return code """
        if returncode in (0, 3221225786):
              status = "Ready"
          elif returncode == -15:
              status = "Terminated - {}.py".format(self.command)
          elif returncode == -9:
              status = "Killed - {}.py".format(self.command)
keep keep keep keep replace keep keep keep keep keep
 gui bugfix - termination on extract 
lib/gui/wrapper.py