public function checkRunning(Timer $timer)
    {
        if (!$this->running) {
            $timer->cancel();
            // @codeCoverageIgnoreStart
            exit($this->exitCode);
            // @codeCoverageIgnoreEnd
        }
    }