public function finish()
    {
        $this->extensions->each(function ($options, $name) {
            $this->dispatcher->finish($name, $options);
        });

        $this->extensions = new Collection();
        $this->booted = false;

        return $this;
    }