Catch exceptions from analysis client.  Fixes #58