add shortened stack trace on UDF failure