Add threadpool resetting after sampling threadpool