Flush output buffers before exit.
[#1071] Flush output buffers before exit.