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.
Merge pull request #52 from dpoirier/bug-863066-more-logging-when-retries-exhausted