when set properly the varistream will sense the change in pressure and non flow when the valve is shut so will shut the pump off too. You set the pump cut off by the blue pot dial in the back of the varistream.
the varistream controls pump speed and water pressure, it cuts off when you shut the valve or disconnect the end stops to save water and batt power and to prevent damage to the pump.