Fixes #8317 - Implement Reboot action

Is `#{failed}` defined?

Nitpick: formatting.

Looks good, I haven't tested tho.