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