close file on loadValue