public void done(){
  if (out != null) {
    out.close();
  }
}

public void done ( ) { if ( out != null ) { out . close ( ) ; } }
called when the simulation is done , user requested premature termination or intervalled report generating decided that it ' s time for the next report .
