Don't join scheduler thread while waiting for it to exit.