using the method from 2014 gophercon -- <<A Channel Compendium >>for closing multiple goroutines