Timescale and magnitude of plasma thermal energy loss before and during disruptions in JET