int useCount = clientsCount.containsKey(port) ? clientsCount.get(port) : 0;
if (useCount == 1) {
// last client executed stop, cleaning up
TransientNameServer server = localServers.get(port);
if (server != null) {
server.stop();
clientsCount.remove(port);
localServers.remove(port);
} else {
logger.warning("Local name server on port " + port + " was null!");
}