public static void close(@Nullable AutoCloseable rsrc,@Nullable IgniteLogger log){
  if (rsrc != null)   try {
    rsrc.close();
  }
 catch (  Exception e) {
    warn(log,"Failed to close resource: " + e.getMessage());
  }
}

public static void close ( @ Nullable AutoCloseable rsrc , @ Nullable IgniteLogger log ) { if ( rsrc != null ) try { rsrc . close ( ) ; } catch ( Exception e ) { warn ( log , "Failed to close resource: " + e . getMessage ( ) ) ; } }
closes given resource logging possible checked exception .
