By pump overrun, I presume you mean the pump carries on running while the valve closes. But that's only a couple of seconds or so, surely not significant? What harm could be done?
When the switch sticks, the pump runs and runs and runs against a closed valve. I'd have thought that as worse...