Close a thread

Close a thread