remove temp file on ErrorException

If the file cannot be accessed via `file_get_contents` an `\Error_Exception` is thrown. The file should be unlinked in this case as well to have a clean state.