Properly closing loaded level files now

Found because jEditor could not save to levels, as they were never
really closed by the app. This was never noticable on mac and linux!