dtor check if thread already exited