gestion CLOSE_SOCKS