If you are trying to automate Avaya CMS thru Excel VBA and your script is hanging due to a build up of servers instances in Windows Task manager then this might help. It will probably only happen if the Avaya application is running at the same time as running my script.
The possible solution is to terminate all objects using the below code at the end of your script. I tried it few times and it worked. The server instances will terminate properly at the end of the script.
cvsApp.Servers.Remove cvsSrv.ServerKey
cvsCon.Logout
cvsCon.Disconnect
cvsSrv.Connected = False
Set Log = Nothing
Set Rep = Nothing
Set cvsSrv = Nothing
Set cvsConn = Nothing
Set cvsApp = Nothing