I did this to match the way validation exceptions are handled just above. Happy to remove the function and add the rollback here instead.