Close hook required finalization of last generation, otherwise data on
the final generation would not be output.