Take care shutting down the checkpoint thread: we have to do that before btree handles are closed.