close

suspend fun close()

Release all resources. Suspends because wallet.close() serializes the dust-state close against an in-flight balance (see MidnightWallet.close) — a teardown that raced a running balance is exactly what threw "DustLocalState has been closed" on PreProd.