public function setExceptionHandler(KExceptionHandlerInterface $handler)
    {
        $this->__exception_handler = $handler;

        //Re-enable the exception handler
        if($this->isEnabled())
        {
            $this->disable();
            $this->enable();
        }

        return $this;
    }