Cleaned up version of the above code.
Uses DoEvents for event handlers that call each other
Open files closed on WinSock_Close event
A couple of programming form improvements
...