Added end callback to asyncForEach