Explicitly close resource filehandles
Merge pull request #325 from gittip/close_fh

Explicitly close resource filehandles