code: def stop(self, timeout=None):
          
  
          self.stopping = True
  
          for process in list(self.processes):
              self.stop_process(process, timeout=timeout)
docs: Initiates a graceful stop of the processes