Why is thread still going on?