consumer and producer. Only need to close goroutine