Application-level exception handler
Trace used for file logging