Merge pull request #42 from jaraco/patch-1

Fix ValueError: read of closed file