Fix stack traces with default exception handler