Benchmarks: Master failure resiliency

Detect cases where the master node changed. In such cases we abort the
benchmark, clean out the cluster state, and send a failure back to the
caller.