core: retry failed downloads (end of queue) on miscellaneous failure

In practice, this seems to fix a number of miscellaneous failures that
were stopping the daemon.  Some of those might need to be further debugged,
but at least for me, this has increase the stability of the downloader
significantly.