Transient cooling of a heated enclosure