public function dir_closedir()
    {
        if (!$this->handle) {
            return false;
        }
        self::restorePrev();
        \closedir($this->handle);
        self::register();
        $this->handle = null;
        return true;
    }