Clean up and affix flash messages on stream.