Fixing not always connecting to master even when forced.
Fixing startup when slaves are down.