Working on thread finalization in the ESS and made stub for the thread measurement paper