docs: @Override
      public final void close() {
          dispose();
  
          if (this.outputStream != null) {
              try {
                  this.outputStream.close();
              } catch (IOException ioe) {
                  logger.error("Unable to close output stream.", ioe);
              } finally {
                  this.outputStream = null;
              }
          }
      }