protected function doStop() : \Generator { if ($this->server) { (yield $this->server->stop()); } $this->logger->flush(); }