Clean up tempfiles from output stream, fixes #57
Merge pull request #150 from iangreenleaf/tempfile_cleanup

Clean up tempfiles from output stream