Please don't allow public access to instance variables.  Add a public close() method instead.