Minor improvement to download error handling