I believe there is a missing `continue` statement here after this rollback. Otherwise a commit occurs below..