message: Avoid exit unexpectly by uncaught exceptions in Python
diff: @@ -141,12 +141,15 @@ extern "C" int eos_main(int argc, char** argv) {
  // PyRun_SimpleString("initeos.init()");
  if (app().interactive_mode()) {
  + while(true) {
  PyRun_SimpleString("initeos.start_console()");
  - } else {
  + }
  + Py_Finalize();
  + appbase::app().quit();
  + }
  while (!shutdown_finished) {
  boost::this_thread::sleep_for(boost::chrono::milliseconds(100));
  }
  - }
  return 0;
  }
  