Seriously it is a good idea to be familar how to manually kill your
diesel engine. The two options are shut off the fuel or shut off the air. Practicing both AT THE
DOCK before you need it will improve confidence.
Even the cable style fuel shutoff can break or slip. Good to know where the lever at the other end of that cable is located. It takes all of 5 seconds to kill the engine ...if you know where it is. Same thing with solenoid. I have never seen a fuel shutoff solenoid that can't also be manually actuated but exactly how varies by engine model.
If you ever get
diesel in the crankcase in a hot engine the only way to shut it off will be killing the air. The hot engine
oil will vaporize the diesel and the air intake will be pulling in a mix of fuel and air.
Google some videos of runaway diesels. So shutting the engine off with a hardback book or wooden board over the air intake is good practice. If you have never done it before you likely aren't going to figure it out the first time when your diesel is redlining at 4,000 rpms ready to shake itself apart.