charm: close file after opening
Merge pull request #46 from rogpeppe/015-close

charm: close file after opening