diff --git a/smocore/marionette/marionette.cpp b/smocore/marionette/marionette.cpp index a2cde9a..f5a0fd0 100644 --- a/smocore/marionette/marionette.cpp +++ b/smocore/marionette/marionette.cpp @@ -67,14 +67,8 @@ void ComponentThread::marionetteMain(ComponentThread& self) self.getIoService().post([]() { - try { - initializeSalmanoff(); - mind.initialize(); - } - catch (const std::exception& e) { - mrntt::exitCode = EXIT_FAILURE; - throw; - } + initializeSalmanoff(); + mind.initialize(); }); std::cout << __func__ << ": Entering event loop" << "\n"; @@ -106,7 +100,11 @@ void ComponentThread::marionetteMain(ComponentThread& self) << ": Unknown exception occurred" << "\n"; } - if (sendExceptionInd) { self.exceptionInd(self); } + if (sendExceptionInd) + { + mrntt::exitCode = EXIT_FAILURE; + self.exceptionInd(self); + } } std::cout << __func__ << ": Exited event loop" << "\n";