Close the channel when closing the pool.