that.close = function (socketId) {
                if (socketRegistry.hasOwnProperty(socketId)) {
                    delete(socketRegistry[socketId]);
                    chrome.sockets.udp.close(socketId, function () {
                        console.debug("Closed UDP  socket '%d'", socketId);