code: def on_finished(self):
          
          self.controller.is_running = False
  
          error = self.controller.current_error
          if error is not None:
              self.info(self.tr("Stopped due to error(s), see Terminal."))
          else:
              self.info(self.tr("Finished successfully!"))
docs: Finished signal handler