update fix closing of sockets after launching ping