Fix bug where simulation terminates same cycle as last stat dump causing a duplicate...