instantLaunchAndQuit is not a sync function. You need to put the continuation of this function in its callback.