Fix: xml: Remove over-use of memory cleanup function
Log: Trace log for return code on exit