I had already pulled the plunger out of the solenoid while testing for fuel delivery issues.+1 on what @Auto Doc's said.
I just recently had an instant shut down on my Gravely. It has the Kohler ZT740 Confidant. It would try to fire but never would. I got it towed around to my garage and took the bumper assembly off for a look. I was checking around the carburetor and the hot wire to the carburetor solenoid fell down. The connection was broken. New connections and some 14ga. Wire fixed it right up.
Take a look at the hot wire going from the solenoid to the wiring harness.