Set the thread to non active after waiting for it.