Wait for all units before cleanup.