public static void close(@Nullable SelectionKey rsrc,@Nullable IgniteLogger log){
  if (rsrc != null)   close(rsrc.channel(),log);
}

public static void close ( @ Nullable SelectionKey rsrc , @ Nullable IgniteLogger log ) { if ( rsrc != null ) close ( rsrc . channel ( ) , log ) ; }
closes given resource logging possible checked exceptions .
