We need this to properly support LevelDB backend, which needs to be released if we don't want to leak memory.