Added thread info when exits