Improve cluster update settings api

* If the minimum master nodes has been breached the reroute shouldn't be executed
* Cluster update settings call should also return in case of failures during the reroute.