I don't know if you can use this, but @bravenel wrote this "all-off" app that works great and offers programmable retries and metering. It has solved my reliability issues of turning off a large number of devices at the same time.
https://community.hubitat.com/t/app-to-turn-off-a-lot-of-devices-with-retry/84763