Note that this also changes the way to detect that the connection is currently active. This change is not required but but does simplify the code a little bit.
This is in preparation to optimize list to not be rebuild completely for every change.