WebAgg: flush stdout after printing

Without flushing, the message can be displayed too late
Merge pull request #3762 from vmarkovtsev/patch-1

MNT : WebAgg: flush stdout after printing, redirect "stopped" message to stder