Added code to dump the state of the exceptions.