In sqlarfs (the Fuse FS driver for SQLite archives) make sure it always
runs in the foreground. And after it stops, clean up prepared statements and
memory allocations and close the database connection before exiting.
check-in: ed4e6af2e8 user: drh tags: trunk