Don't close leveldb in checkpoints handling functions