Aggregate data on shutdown for charts [Finishes #82650798]

Please use `in_array`