Better translation of RPC errors to exceptions.