close file handler