Shuts down the process.

def shutdown(self):
        """ Shuts down the process.
            """

        if not self._exited:
            self._exited = True
            _shutdown_pipe(self._pipe)
            self._task.stop()
            raise SystemExit