Finalize core thread