Do not delete temp files on error (fixes #849)
Merge pull request #929 from AudriusButkevicius/temp

Do not delete temp files on error (fixes #849)