add an exception callback option