I\'d like to check if a block of the code has an unspecified error, and if any error is found I\'d like to revert/remove all the changes that block code made (change of vari