private function closeFile() {
        $this->filename = NULL;
        if ($this->fh !== NULL && $this->fh !== FALSE) {
            $rc = fclose($this->fh);
            return $rc;
        } else {
            return TRUE;
        }
    }