stream.end() should also clear the flush interval.

stream.end() should also clear the flush interval.