Why is the thread not cleaned?