More error handling and retrying for downloader.