Explicitly close some files (from issue #10093)
6 files changed