fixed some sock resource leak