s/*chan/chan/g, swapping sending for closing channel