flow: set final_pass if we have to bail on a function