Thermal Afterglow from Transient Energy Release in Neutron Stars