Close file handles after use
Merge pull request #38 from willglynn/close_file_handles_after_use

Close file handles after use