public function end()
    {
        if ($this->isStarted()) {
            if (is_callable($this->getCleanupCallback())) {
                call_user_func($this->getCleanupCallback());
            }
            session_write_close();
        }

        return $this;
    }