shutdownGraceful

suspend fun shutdownGraceful(): ByteArray?

Graceful async teardown: delete NAT mappings, persist DHT state (returned for the caller to write), shut every torrent down cleanly, close the proxy UDP relay, then release sockets. Complements the synchronous shutdown. Returns the serialized DHT state (or null).