+ private static void safeLoggingClose(AutoCloseable closeable, Path file) {
+ if (closeable == null)
+ return;
+ try (AutoCloseable c = closeable) {
+ } catch (Exception e) {
+ LOGGER.error("Failed to close " + closeable.getClass() + " of " + file.toAbsolutePath());
+ }
+ }
+