Alternatively there is a "de-rail eraser" rule on the DLS.
This will remove the derailed items, sack the driver and allow everything to carry on.
The re-rail portal will re-instate the train.
They are slightly different - but both useful.
Thanks to their creators.
Colin