Close command socket in peer side when disconnecting from the system