exception listener, allow easier overloading of the default behavior