Fixed shutdown issue with aggregators.
Use constants for inter-method communication.