Could be bad spark plug, bad ignition module or something is the mower wiring that is causing the shut down. Remove the ground wire from the igntion module and see if it still dies. If so then try new plug. If it fails then replace module. If it continues to run then it is someplace else in the wiring system.