Fix channels example to close channels when last item is enqueued; this prevents a crash-on-exit in r-m