Improve cluster update settings api

* Verify that the current node is still master before the reroute is execu...ted and if that isn't the case skip reroute.
* Invoke listener when reroute fails.