FIX log stack trace correctly in case of generic exception handling.