Connects the client; with auto-reconnect on it returns at the first connect and throws only on a failure.