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();
        }
    }
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();
        }
    }
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 ( ) ; } }
Clean up old savegames at the end of each loop iteration.

@param Shell $shell
Clean up old savegames at the end of each loop iteration .