Over run cut off was first played with by Jaguar on injection systems
50 years ago.
After some teething issues, it's become standard on fuel injection systems.
For modified equipment, where are you placing the shut off solenoid?
Diesels use the fuel as a lubricant, you might start seizing fuel pumps if you let the pump run too much with no fuel.