RPC Error reporting

RPC calls don't return errors or exceptions currently, add support for that.