allow for app error handler prior to throwing