thread closing problem fixed