protected function sigterm() { if (Daemon::$config->logsignals->value) { $this->log('caught SIGTERM.'); } $this->graceful = false; EventLoop::$instance->stop(); }