public void close() {
    try {
      logger.close();
    } catch (Exception exc) {
      // nothing
    }
    try {
      this.finalize();
    } catch (Throwable thr) {
      thr.printStackTrace();
    }
  }