support for error/exception callback