public function isRunning()
    {
        $running = $this->isProcessRunning();

        if (!$running && $this->getProcess()->isStarted()) {
            $this->registerEnd();
            $this->registerSuccessful();
        }

        return $running;
    }