When the engine dies, try turning the key off and on a few times and listen for the click of the fuel solenoid on the carb. No click replace. if it does click then try restarting the mower. If it restarts there is a chance the plastic tip on the solenoid is coming off and shutting off the fuel, then when you turn the key off, it reseats the tip.