code: def shutdown(self):
          
  
          if not self._exited:
              self._exited = True
              _shutdown_pipe(self._pipe)
              self._task.stop()
              raise SystemExit
docs: Shuts down the process.