The host embedder may also want to terminate the wasm instance for single-threading mode, and it should work by setting exception to the wasm instance.
cluster->lock
exec_env->module_inst