added log for better exception