/** * @throws \Exception */ public function start() { try { $this->running = true; $this->run($this->config->getCallback()); } catch (LoopException $exception) { $this->event->setException($exception); $this->stop(); } catch (\Exception $exception) { throw $exception; } }