fixed bug that i created in build 0b7bd164ebd0b792aa17b321d2997bffc3c76ab4
adding checking closing connection
fixed a warning
hard remove of all _print functions if DEBUG is not set, @jpfr or @uleon: who does own ua_xml.c? Please review changes there, I fear i was too hard. Relates to #101