public function __invoke($exception, $value) { foreach ($this->queue as $callback) { try { $callback($exception, $value); } catch (\Throwable $exception) { Loop::defer(static function () use($exception) { throw $exception; }); } } }