code: public void close() throws DataUtilException {
          // render footer
          try {
              if(writer != null) {
                  writeBottom(false);
              }
          } catch (IOException e) {
              throw new DataUtilException("Failed to close the HTML table file", e);
          }
      }
docs: Close the HTML table and resources
  @throws DataUtilException exception