Improve exception handling in HttpDownloadHelper