protected function exitScript()
    {
        // @codingStandardsIgnoreStart
        @\trigger_error('Use own response exit!', E_USER_DEPRECATED);
        // @codingStandardsIgnoreEnd

        $session    = System::getContainer()->get('session');
        $sessionBag = $session->getBag('contao_backend')->all();

        $user = BackendUser::getInstance();

        Database::getInstance()->prepare('UPDATE tl_user SET tl_user.session=? WHERE tl_user.id=?')
            ->execute(\serialize($sessionBag), $user->id);

        exit;
    }