message: fix crash when not in interactive mode and press CTRL+C
diff: @@ -113,12 +113,12 @@ void start_eos() {
  } FC_LOG_AND_DROP();
  wlog("+++++++++++app exec done!!");
  {
  - //std::lock_guard<std::mutex> lk(cv_m);
  - }
  - cv.notify_all();
  + std::lock_guard<std::mutex> lk(cv_m);
  init_finished = true;
  shutdown_finished = true;
  }
  + cv.notify_all();
  +}
  extern "C" int eos_main(int argc, char** argv) {
  g_argc = argc;
  @@ -167,7 +167,7 @@ extern "C" int eos_main(int argc, char** argv) {
  appbase::app().quit();
  }
  - cv.wait(lk);
  + cv.wait(lk, [](){return shutdown_finished;});
  wlog("exiting...");
  vm_deinit_all();
  py_exit();
  