code: @Override
    public synchronized void close() throws Exception {
      if (this.readerWriter != null && !this.writerClosed) {
        this.readerWriter.close();
        this.writerClosed = true;
      }
    }
docs: Closes the readerWriter, which in turn closes the FileSystem.
  @throws Exception