code: public void close() throws IOException {
          clear();
          if (_tempfile != null) {
              _tempfile.close();
              _tempfile = null;
              _tempfilef.delete();
              _tempfilef = null;
          }
      }
docs: Clears all data and closes/deletes backing temporary file if used.
  @throws IOException when something goes wrong.