finished close thread