detach() from thread