log stacktrace of swallowed exceptions