Use with statement to close file handle
Merge pull request #108 from svisser/patch-3

Use with statement to close file handle