Quick-fix for catching UDF exceptions