averting train mishap