Simplify rpc subscribe loop