Fix launchProgram error handling KEXC_THREAD_FLAGS