close RE for socket id