Added a failure case. Valve turns off if there are no local nodes