clean up local file if download failed.