I have tried finding a wiring schematic with little success. But on your tractor, the stop solenoid has only 1 wire? Do you have an on/off keyswitch, and a push button to crank? I have seen only a few Kubotas in my life, so I am not familiar with their features. I have worked on a lot of larger diesels though, and the solenoids are
usually very simple. So just unplugging the solenoid should shut the engine down, unless the solenoid is bad.