public function shutdown($message = null)
    {
        if (!$this->loop) {
            return false;
        }

        if ($message) {
            $this->log('notice', sprintf('Loop stopped: %s', $message));
        }

        $this->loop = false;

        return true;
    }