=per #13962 Close LevelDB snapshots to avoid resource leakage

Fixes #13962