close leveldb on exit/SIGHUP/SIGINT/SIGTERM