Title describes it all. We quite literally cannot get rid of our locomotives or the game immediately crashes. Whether we mine it, remove it with robots, or the train is destroyed, we have the same issue and crash.
Here is a video with an example of the game crashing when a Steam Locomotive is destroyed. In this instance, it is destroyed by a Nuclear Bomb. Unconventional, yes, but it's what I have on hand.