Made xcmp more robust.
Improved log message.