New cars in USA, most have collision mitigation system and brake overriding system. May prevent this kind of things from happening. When there is possibility of collision, car computer will automatic break. When break is in function, gas will be automatically shut off.