remove sockets from library