public function stop($instance = 'current') { parent::stop($instance); if ($serviceInfo = $this->getServiceInfo($instance)) { list(, , $port) = array_values($serviceInfo); $this->showStatus($port, false, $error); $retry = 10; while (!$error) { usleep(100000.0); $this->showStatus($port, false, $error); --$retry; } $error or Log::error('Unable to stop instance: ' . $instance); } }