add in closeSocket