Until near the end of the cycle your dryer is putting all the energy into evaporating water, so the temperature inside the dryer is actually fairly cool. Right at the end things change as the remaining water isn't enough to counteract all the energy being put in and so you heat the clothing to no purpose. So at the end off the cycle you should either shut off with a little moisture in the clothing, or regulate the temperature so that the heat input is balanced by the water evaporation.
Until near the end of the cycle your dryer is putting all the energy into evaporating water, so the temperature inside the dryer is actually fairly cool. Right at the end things change as the remaining water isn't enough to counteract all the energy being put in and so you heat the clothing to no purpose. So at the end off the cycle you should either shut off with a little moisture in the clothing, or regulate the temperature so that the heat input is balanced by the water evaporation.