Zeekctl plugin - restart all nodes if 1 crashes

Hi all

Im trying to figure out whats the best way to achieve the following :
Upon running a cluster, if one of the worker instances has crashed, I wish to run a custom bash script and restat the cluster.

I thought of a zeekctl plugin or maybe meddle with bash scripts there.
Any ideas ?