public function stopServer() { if ($this->process and $this->process->isRunning()) { $this->process->stop(0); } }