Delete the temporary file if a download fails or is interrupted