Implement overtemperature detection and shutdown