Fix ending listening thread on disconnect
Fix bug with removing listening thread from the list
Projects reverted to VC100 framework for convenience