code: public void close() {
          if (this.m_stream != null) {
              try {
                  this.m_stream.close();
                  this.m_stream = null;
              } catch (IOException e) {
                  logger.warn("Error closing stream", e);
              }
          }
      }
docs: Closes the underlying stream if it's not already closed.
  
  In the event of an error, a warning will be logged.