code: public static void closeQuietly(@Nullable Socket socket, @Nullable Writer writer) {
          if (writer != null) {
              try {
                  writer.close();
              } catch (IOException e) {
  
              }
          }
          closeQuietly(socket);
      }
docs: Note: does not {@link java.io.Writer#flush()} before closing.
  
  @param socket
  @param writer