Go through rarch_main_command instead of directly manipulating
g_extern.lifecycle_state