This is basically a modified copy of the "shared-module" example.
This sample demonstrates wasm_runtime_terminate API.