[GN] Don't complain to the user about invalid XML.
[GN] Removed excessive dbg output.
[GN] Better code.
[GN] Complain to the log on reply errors.