App.DoEvents NOE

According to this I have a NOE from the App.Doevents statement that keeps my console app alive.

In actual fact there is no AddSocket event specified for the ServerSocket, so when it creates the pool it can’t, and I’m guessing the pool is created during an event loop.

It didn’t take me too long to figure out, but it could have been a nightmare. Is there a better way to raise this error preferably on the Listen statement?