Revert esc change, just run on exit
Don't attempt to do anything with ignoreUnknown at init

It's too error prone to try to duplicate actions in various places. Just
make the user close these themself.
Log restore state timings
Time JSON+gzip marshalling
Add some timings