I bought a tetra heater, which is what I have in my other tank. Also, I always unplug them before a water change. I think it was probably a combination of turning up the temperature too quickly and it being an old heater.
And I wish I could leave it plugged in, but I have an external filter and...