I am not sure if it is the main reason they have that throttle that closes fully on ignition off, but one reason is to prevent diesels running away/running on their engine oil.
I have only seen it once in real life and it was quite interesting, the guy had been revving the engine and then seemed to have left his foot on the throttle as it carried on revving, I told him to turn the ignition off which he had already done, in the end I dragged him out of the van and I put it in gear and stalled, luckily before any major damage as it has been known to destroy an engine.