fix: close file handler