There is a SmartApp from @RBoy, which works with Routines. The concept is similar. Check that the Routine has finished correctly.
[RELEASE] Routines Backup - Verify/double check your routine execution, notify and take actions
(I have never tried it, and I don’t know is there any equivalent for Automations.)