clear @handled_exception before each step