added try/except block to aggregator