When turning the engine off some gas might still get into the intake causing dieseling, or run-on. The Nikki carburetor has a solenoid valve that shuts off the fuel when the switch is turned off.
To test the solenoid have someone turn the key on and off and listen for a clicking sound. This would indicate the plunger is moving in and out.