Fix leaked file handle
Merge pull request #1 from dhilgarth/master

Fix leaked file handle