Data flow with a row count that is stored in a variable, add a conditional split that identifies the footer record and stores the count value in another variable
Then return to the control flow and use the two variables to determine if you will continue.
Either a constraint, a script, or insert variables into a table and use that to determine if you will continue.