Пример #1
0
  protected void finalize() throws Throwable {
    // flush the logs
    close();

    // do super.finalize, just for good style
    super.finalize();
  }
Пример #2
0
  private void exitWithError() {
    // flush logs first
    close();

    // exit
    System.exit(1);
  }