Thermal magnetic protection