Minor cleanup on the exception listener.