public function afterLoop(Shell $shell)
    {
        // if there's an old savegame hanging around, let's kill it.
        if (isset($this->savegame)) {
            \posix_kill($this->savegame, SIGKILL);
            \pcntl_signal_dispatch();
        }
    }