introduced thread closing