code: private void closeStorageRegistry() {
          for(DB storage : storageRegistry.values()) {
              if(isOpenStorage(storage)) {
                  storage.close();
              }
          }
          storageRegistry.clear();
      }
docs: It closes all the storageengines in the registry.