public final function __destruct()
{
echo "Server Was Shutdown..." . PHP_EOL;
//shutdown
$this->server->shutdown();
/*
//fixed the process still running bug
if ($this->monitorProcess != null) {
$monitorPid = trim(file_get_contents("./monitor.pid"));
\swoole_process::kill($monitorPid, SIGKILL);
}
*/
}