code: def stop_process(self, process, timeout=None):
          
  
          process["terminate"] = True
          if timeout is not None:
              process["terminate_at"] = time.time() + timeout
          process["subprocess"].send_signal(signal.SIGINT)
docs: Initiates a graceful stop of one process