Added Magento Exception logging