Collect legacy messages after task execution, because they use name and type information.