I agree that needless loss of life is never warranted. However, 46,000 people are killed in auto accidents every year in the US, a vast majority of them are because the at least one driver did something stupid and caused the accident. 600 people a year die in train crossing accidents each year, and I'm certain a vast majority of them have nothing to do with how the railroad operated, but rather some stupid move by a driver.
There's no argument that we shouldn't strive for perfection, but we also have to be realistic and know that it's rarely achieved.