more cleanup, close files once loaded.