Generalize exception handling for the api re-try calls.

I generally dislike generic "catch" blocks due to the danger of exception
swallowing.  Hoever, some of the exceptions currently thrown by the JSON
parsing are simply general Exception objects and not more specialized.