Consolidate closing files into one function
Authored by: dholmes999 2008-05-17
Parent: [r163]
Child: [r165]