close the leveldb if we get error creating LevelDbShard