The system for my well shuts off the electric supply to the pump, the system for municipal water uses a valve to shut off the water.
ETA; the nice thing about shutting off the pump is that no matter where the leak is it gets mitigated (and saves the pump). With a valve, if the leak is on the supply side of the valve it is useless.