void () { if (!myInitialized.compareAndSet(true, false)) { return; // already shut down } String name = myOpenFile != null ? myOpenFile.toString() : "in-memory storage"; if (!myUnmodifiable) { LOG.info("Start shutting down " + name); } try { mySerializerEnumerator.close(); if (!myUnmodifiable) { LOG.info("Finished shutting down " + name); } } catch (IOException e) { nameStorageCrashed(); LOG.error(e); } }