[Mac] Avoid calling finishLaunching multiple times