public synchronized void unregister(SocketIO socket) {
		sendPlain("0::" + socket.getNamespace());
		sockets.remove(socket.getNamespace());
		socket.getCallback().onDisconnect();

		if (sockets.size() == 0) {
			cleanup();
		}
	}
Disconnect a socket from the IOConnection. Shuts down this IOConnection
if no further connections are available for this IOConnection.

@param socket
           the socket to be shut down
src/io/socket/IOConnection.java