Cancel print if hotend gets above max temp

Is it possible to make a setting that allows us to choose to automatically cancel a print if the hot end gets above the max temperature setting? It might not make a difference with a runaway hot end, but it sure would help if it wasn’t near all the plastic of the already-printed object. At least I hope it would! :wink: