recognize exceptions in standalone client error handling, fixes #1