Handle IntegrityError separately, fixed vtgatev2_exception handling.