Better error handling when downloads fail.