fixed #21 destroyedSocketID segmentation fault