why do we close and immediatly after open a new, exact same thread?