testing closing socket