Bug 863066: More logging when retries exhausted

Add more info to the exception that tasks raise when they hit
an error we should retry, so that if retries are exhausted and
the exception is propagated upward, there's information about
what that error was.