Since diesels do not have spark ignition to turn off, it has to be shut down with fuel being stopped from injecting. Look for a defective valve or switch not working. Perhaps someone else can provide exact wiring / switch / valve recommendations and locations that has a manual.