exceptions: Make ClientException and its subclasses pickleable