lib: disallow reconnecting on existing connection