close file in Destroy()