public function stop() : bool
    {
        $serverPid = $this->getServerPid();
        if ($serverPid === 0) {
            return true;
        }
        $response = $this->sendCommand('stop');
        if ($response !== 'ok') {
            throw new ControlException('Shutdown failed.');
        }
        return true;
    }
public function stop() : bool
    {
        $serverPid = $this->getServerPid();
        if ($serverPid === 0) {
            return true;
        }
        $response = $this->sendCommand('stop');
        if ($response !== 'ok') {
            throw new ControlException('Shutdown failed.');
        }
        return true;
    }
public function stop ( ) : bool { $ serverPid = $ this -> getServerPid ( ) ; if ( $ serverPid === 0 ) { return true ; } $ response = $ this -> sendCommand ( 'stop' ) ; if ( $ response !== 'ok' ) { throw new ControlException ( 'Shutdown failed.' ) ; } return true ; }
Sends "shutdown" command to Angela instance.

@throws ControlException
@return bool
Sends shutdown command to Angela instance .