fatal error: all goroutines are asleep - deadlock!
You needn't close every channel when you've finished with it.It's only necessary to close a channel when it is important to tell the receiving goroutines that all data have been sent.
Note that it is only necessary to close a channel if the receiver is looking for a close. Closing the channel is a control signal on the channel indicating that no more data follows.
It's OK to leave a Go channel open forever and never close it. When the channel is no longer used, it will be garbage collected.