When the user signifies that they want to terminate the application, the application falls out of the event loop, and quits. This quitting usually involves nothing more than:
app_event.do_event = DO_FINI;
m_action(&app_event);