Let the filter drain until clean diesel fuel flows out, then close the plug or tap and then the vent valve.
In many ways a diesel engine is less complicated than a petrol engine, with greater reliability ...