for some reason when ever CSockets Deconstructor is called the thread exits with -1 how can I fix this