bindNativeAppState calls runtime.setSuspended when the state is not "active". Suspension is not deletion. The SQLite file remains.
After the process is killed
On the next launch, open the same database, register the same agent name and version, andresume the run id. See Crash recovery.
close() is for an orderly shutdown. A kill does not call it. The next open reclaims ownership when the previous owner is gone.