Is there a way to remove the call handled flag from the Set Contact Info step once you have marked a call as handled?
But you could hold your intent to mark the call as handled in a variable: is_handled = true | false
Then at the very end of the script (or upon ContactInactiveException) you can mark the contact as handled based on the value of your variable. This way, it's like a soft marking. BTW, you get a few seconds after the call ends to mark the contact, but not long, so don't dilly dally!