close each plot as we iterate