Updated BeforeLaunchEventHandler to ignore certain conditions if in setup mode