Delete the downloaded file in the error case (not just in the success case).