public function handleExit(\Closure $callback)
    {
        // You cannot assign a signal handler for SIGKILL

        $this->append(SIGHUP, $callback);
        $this->append(SIGINT, $callback);
        $this->append(SIGQUIT, $callback);
        $this->append(SIGTERM, $callback);
    }