code: public static boolean tryToClose(Closeable c) {
          if (c != null) {
              try {
                  c.close();
                  return true;
              } catch (IOException e) {
              }
          }
          return false;
      }
docs: Try to close the closable (output or input stream) passed as a parameter:
  handles null, and exceptions on close operation itself.
  
  @param c