Flush output buffers before exit.
[#1071] Flush output buffers before exit.
Revert reactor restart code.
Update with fix for 2.5.
[#1072] Revert reactor restart code.
Merge branch 'master' into 1065-no-super-avatar