Use a field in the session to avoid locking during close rather than setting a flag -- the latter can race.

refs #793
We've already read the shared state, use the local copies.
Do a hot backup to test recovery, otherwise the copy can race with log archiving removing a log file.  Switch a few tests to use the "standard" backup, use shutil.rmtree instead of our own version.