close

open fun close()

Marks the execution closed and frees the Wasmtime store, module and engine. When an export call is still running on another thread (a host timeout closing a runaway guest, for example), the native objects stay alive until that call returns and are released by the calling thread instead: freeing the store under a running guest is a use-after-free in native code.