protected function checkWorkerShutdown(\CharlotteDunois\Phoebe\Worker $worker) {
        $this->loop->futureTick(function () use ($worker) {
            if($worker->isRunning()) {
                return $this->checkWorkerShutdown($worker);
            }
            
            $this->messenger->removeWorkerSocket($worker);
            $this->emit('exitWorker', $worker);
        });
    }