public static void closeQuiet(@Nullable Context rsrc){
  if (rsrc != null)   try {
    rsrc.close();
  }
 catch (  NamingException ignored) {
  }
}

public static void closeQuiet ( @ Nullable Context rsrc ) { if ( rsrc != null ) try { rsrc . close ( ) ; } catch ( NamingException ignored ) { } }
quietly closes given resource ignoring possible checked exception .
