fix crash on exit with levelDB
fix crash on exit with levelDB

mastercoin-MSC/mastercore,mastercoin-MSC/mastercore,dexX7/mastercore,mastercoin-MSC/mastercore,dexX7/mastercore,mastercoin-MSC/mastercore,mastercoin-MSC/mastercore,dexX7/mastercore,dexX7/mastercore