Add exiting flush on stream.