close all sockets