freezer at-40 wont stop running

my freezer quit running . so I unplugged, cleaned out and in a few days plugged back in and set a thermostat inside and after cooling down it was -40 + in a few hours. whats wrong?