Add a facility to automatically create backtraces for exceptions