added log tracing on unhanded exceptions