print final exit code to stderr
diff --git a/examples/winrs.rb b/examples/winrs.rb
index 47711f3..6bf3e4b 100644
--- a/examples/winrs.rb
+++ b/examples/winrs.rb
@@ -252,7 +252,7 @@
         when "http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Done"
 	  exit_code = node.get "ExitCode"
 	  if exit_code
-	    puts "Exit code: #{exit_code.text}"
+	    STDERR.puts "Exit code: #{exit_code.text}"
 	  else
 	    STDERR.puts "***Err: No exit code for 'done' command: #{node.to_xml}"
 	  end