[runtime] Fix MonoError lifecycle in do_try_exec_main (#3145)