Deal with LevelDB errors