The state is returned now in "getinfo" and as the return value of "togglenetwork".