Remove unnecessary sockets array.