While watching trains recently I thought of this question. If a car owned by tilx or whoever is found to be at fault who pays for the clean up? Would it be the railroad or the car owner?
Too hard to answer because too many factors to list. Derailments are caused by many things: truck "picked" a switch, worn or flat wheels (badly enough), trainman error, other mechanical defect. Most of the time, cars are inspected regularly to prevent problems. If a defect is found, it goes to the RIP track for repair, or set out for car peck to fix on-scene. I won't attempt to solve this one.
GF