Proper error handling for failed download
close download progress on failure