Add error logging to XML import and hardcoded touch events