added integrity error exception handler