Why does end need to emit an empty object? I am not sure I understand