code: public void close() throws DiffException {
          try {
              if(writer != null) {
                  writer.flush();
                  writer.close();
              }
          } catch (IOException e) {
              throw new DiffException("Failed to close report file", e);
          }
      }
docs: Close the file report instance and it's underlying writer
  @throws DiffException