exit loop when init leveldb failed
improve set operation performance