a function call was missing to correctly mail the exception.