don't try to close the temp file twice, otherwise Close() returns an error
even simpler
Merge pull request #2 from technoweenie/stop-double-close

don't try to close the temp file twice, otherwise Close() returns an error