docs: public static boolean close(final InputStream stream) {
        // do not attempt to close null stream, but return sucess
        if (stream == null) {
           return true;
        }
  
        boolean success = true;
  
        try {
           stream.close();
        } catch (IOException e) {
           success = false;
        }
  
        return success;
     }