**** close thread ****