Adopt a defensive tokyo cabinet strategy. Before opening a cursor make sur the store is coherent