That is why we recommended putting automatic parking brakes on trains. I believe Transport Canada is looking at that recommendation. That would be an additional safety guard.
We could also consider installing wheel temperature detectors. These devices could detect, for example, that a bearing on a wheel is overheating. Such detectors are installed beside the tracks. They could warn operators about a possible railcar issue and thus avoid a derailment.