Immediately flush output stream on writeMessage