get the channel to flush the writer
when the former is asked to terminate by the reader