Make sure the underlying channel is flushed