also close the counter channel to raise potential data races