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

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