remove temp file on ErrorException
Merge pull request #12 from dmecke/exception-handling

remove temp file on ErrorException