add close method to aggregators