add a rpc exception to return 500 json data