My guess would be something in the wiring. Try changing the spark plug wires.
To test this, leave it running in the driveway and douse it with a hose. Then if it quits, change the spark plug wires and try it again. If it keeps running--problem solved, but if it still quits, your short is somewhere else.