Added additional debugging/traceback info if there is a critical error that isn't captured.