Fix race condition when starting the apps in demonstration mode.