              status = "Ready"
          elif returncode == -15:
              status = f"Terminated - {self.command}.py"
          elif returncode == -9:
              status = f"Killed - {self.command}.py"
          elif returncode == -6:
              status = f"Aborted - {self.command}.py"
          else:
              status = f"Failed - {self.command}.py. Return Code: {returncode}"
          logger.debug("Set final status: %s", status)
 
</s> remove             status = f"Aborted - {self.command}.py"
 </s> add             status = f"Aborted - {self._command}.py" </s> remove             status = f"Failed - {self.command}.py. Return Code: {returncode}"
 </s> add             status = f"Failed - {self._command}.py. Return Code: {returncode}" </s> remove             status = f"Terminated - {self.command}.py"
 </s> add             status = f"Terminated - {self._command}.py" </s> remove         self.train_stats = {"iterations": 0, "timestamp": None}
 </s> add         self._train_stats = {"iterations": 0, "timestamp": None} </s> remove     def set_final_status(self, returncode):
        """ Set the status bar output based on subprocess return code
            and reset training stats """
 </s> add     def _set_final_status(self, returncode: int) -> str:
        """ Set the status bar output based on subprocess return code and reset training stats

        Parameters
        ----------
        returncode: int
            The returncode from the terminated process

        Returns
        -------
        str
            The final statusbar text
        """
            status = f"Killed - {self._command}.py"
              status = "Ready"
          elif returncode == -15:
              status = f"Terminated - {self.command}.py"
          elif returncode == -9:
            status = f"Killed - {self._command}.py"
          elif returncode == -6:
              status = f"Aborted - {self.command}.py"
          else:
              status = f"Failed - {self.command}.py. Return Code: {returncode}"
          logger.debug("Set final status: %s", status)
keep keep keep keep replace keep keep keep keep keep
 bugfix: GUI force stdout/stderr reading to utf-8 
lib/gui/wrapper.py