Look for the Re-rail Portal on the DLS. This will give you the option of restarting your trainz again after they've derailed or you can just erase them from the scene and fire the drivers.
Re-rail Portal Basic
Kuid2: 116387:6:1
Re-rail Portal
Kuid2: 116387:5:1
Make sure you get all of the required dependencies as well.