Delete file on error

No, it's not possible.