Wrapped flusing stream to avoid IO problems.