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