Shuts down the process.

            `skip_hooks`
                Set to ``True`` to skip running task end event plugins.

def shutdown(self, skip_hooks=False):
        """ Shuts down the process.

            `skip_hooks`
                Set to ``True`` to skip running task end event plugins.
            """

        if not self._exited:
            self._exited = True

            if not skip_hooks:
                self._run_events(shutdown=True)

            _shutdown_pipe(self._pipe)
            self._task.stop()
            raise SystemExit