What temp and material are you printing with?
One thing to try to avoid thermal runaway is to make sure the fan is not turned on to high while printing the first 1-3 layers. The hotend is to close to the bed and has trouble keeping temp. If you have an E3D, make sure to use the silicone sock on the heater block.