public function onServiceDown()
    {
        if (!$this->serviceRunning) {
            return;
        }

        $this->getLogger()->debug('Service is no longer alive.');
        $this->serviceRunning = false;
        $this->shutdown();
    }