Recommendation: Change from a while loop going through the SCID\'s, to using /scon -at1
If you connect to Network 1, Network 2, Network 3, Network 4
then disconnect from Network 2
the CID value for Network 2 is still recognized in $scid(0)
so you would try to do a /scon to a connection ID that isn\'t connected.