Detach created thread