fixed race condition in LauncherBase.launchThread