A retry downloader middleware to record failed request