Allow reconnect if the connection was closed.
Update to new get_masters interface.