During the form event Query_Unload, close the file if it's open.