retry command execution after re-connecting to hosts

Tested locally, works.  Reconnects upon failed command execution.  Does one attempt to re-run command, but reconnect attempts happen 10 times (as per the pre-existing code).