code: def stop(self):
      
  
      log.info('Stopping %s' % self)
  
      pids = list(self._processes)
  
      # Clean up the context
      for pid in pids:
        self.terminate(pid)
  
      while self._connections:
        pid = next(iter(self._connections))
        conn = self._connections.pop(pid, None)
        if conn:
          conn.close()
  
      self.__loop.stop()
docs: Stops the context.  This terminates all PIDs and closes all connections.