void (IOException e, String message) { try { if (myMap != null) { try { myMap.close(); } catch (IOException ignore) { } IOUtil.deleteAllFilesStartingWith(myFile); } myMap = initializeMap(); LOG.warn(message, e); } catch (IOException e1) { LOG.error("Cannot repair", e1); myMap = null; } }