rebuild sockets cleanup