Ray, usually with a run away situation on a diesel, something has let loose in the fuel rack where the rack is disconnected from any fuel controls internally in the injection pump. The engine literally jumps to wide open throttle. We're talking max rpms for the engine (5000 plus rpms
), not where the pins set for max rpm for the foot throttle or hand hand throttle. (3200 rpms)
If it has an electric fuel pump, then yes, shutting they key off will shut the engine down. If you have a mechanical fuel pump or is gravity fed, then you need to cut fuel or air flow to get the engine to shut down.
If it's running away and your moving then the best thing to do, is to stop moving first. Then deal with the racing engine. Wether it's letting off the hydro pedel, or pushing in the clutch, putting the transmission in nuetral and locking the brake.