Thermal perturbations caused by large impacts and consequences