private static function invokeHandler(FetchExceptionHandler &$handler, \Exception $exception, &$cloned)
    {
        if (!$cloned && !$handler instanceof StatelessFetchExceptionHandler) {
            $handler = clone $handler;
            $handler->initialize();
            $cloned = true;
        }

        $handler($exception);
    }