Thanks for that input. it helps but another problem still exists.
Is there a command that can identify if I am connected or disconnected to any server?
What I am trying to figure out is if I disconnect from one server
and I am still connected to another server. I don't want my script to stop if it is still connected to any server.