Water Dispenser sometimes won't stop

Hello

A couple of times water will continue. Opening door will stop it. The latch does work. I am guessing the switch, location? How to test?

Thanks
Rich