jsonrpc: Check RPC status after trying to send, not before.