"Bomb Rescue" Idea

I have a programme that is rather complicated, that works, but frequently bombs at stages along the way. I am hoping it will become more stable as the beta version is improved, but for the moment I’ve created a workaround that I thought might be worth sharing. I’ve set up a permanent variable, and as the programme reaches various points along the way, the permanent variable is changed, and the programme saved. When the programme bombs, the user can select a “Bomb Rescue” button from the front page, that retrieves the value of the permanent variable, and takes it to the appropriate part of the programme from which to continue, and hopefully complete the sequence.