The shut off valve you refer to is make by Watts and is called "Inteliflow". Unfortunately,it is expensive and requires a plumber to modify your plumbing system and install it. Also, when the machine is on, the hoses are still subject to breakage and flooding can result.
I have developed a patent pending device called "Flood-X" which eliminates the high-pressure hoses between a washing machine and a home's plumbing system. This makes flooding virtually impossible. It is easily installed by the homeowner or as part of a new machine by the OEM.