Sadly this is too late to help you, but it may help other Hokies. We have
this attached to the fill valves on our washer. There is a sensor that sits on the floor and if it detects any water, the two solenoids on the valves shuts off the water. It wasn't that expensive, around $60 if I recall.