BUG: ensure correct buffers are flushed in winrm.