Fix for leveldb crashing on close
Merge branch 'master' of https://github.com/mdhim/mdhim-tng