My (extremely old skool) Isuzu engined diesel has an engine stop solenoid which is how it stops the engine when you turn the key off. I was going to energise (or de, Ive got to check the wiring) this via a switch. Should be easier for people with older technology like me