explicitly close file