closing the thread