Added retries to document downloader