Added traceback to track the stack when an exception occurs