Raise an explicitly typed RPCFailure exception when the server says the rpc failed

Fixes #7