added aggregator flush on reopen