Call final() on stream flush.