rescue RPC error