fixed error
closing socket