Why does my jeep shut off when engine gets hot?

Your engine may be running in open loop due to a defective coolant temperature sensor, which on my 1991 Cherokee L6 is located on the thermostat housing. This is different from the coolant temperature sender, which is located at the rear of the valve head next on the driver's side.