public function run() { $this->startTime = time(); $workers = $this->beanie->workers(); $this->registerWatchers($workers); register_shutdown_function([$this->shutdownHandler, 'handleShutdown'], $this, $this->logger); $this->eventLoop->run(); $this->shutdown($workers); $this->logger->info('Termination sequence complete. I\'ll be back.'); }