My whirlpool duet washer runs through till the rinse spin cycle than stops. Remains locked and beeps 3 times every 3 seconds and flashes the wash light
I'm attaching your tech. data sheet below. On page 5 do the diagnostics test and the Starting Service History Mode & Diagnostic Test to check for a error code.
For the tear in the front gasket you'd need to replace the bellow.
You may want to UNPLUG THE MACHINE FIRST, then remove the MCU(Motor Control Unit) and look at the circuit board closely and see if you notice any burnt spots on it, IF SO then its the culprit.