public function onError(Bucket $bucket)
    {
        $data = $bucket->getData();

        if (isset($data['exception']) && $data['exception'] instanceof Quit) {
            throw $data['exception'];
        }

        $this->onEvent('error', $bucket);
    }