detach threads after their creation