public void close() {
   doClose(true);
 }
 public void cleanup() {
   doClose(false);
 }