def initCompleted(self, good):
        self.shutdown()

        if good:
            self.deferred.callback(('good', self.node_ipps))

        else:
            # In a tie, prefer 'banned_ip' over 'foreign_ip', etc.
            rank = []
            i = 3
            for name in ('banned_ip', 'foreign_ip', 'dead_port'):
                rank.append( (self.counters[name], i, name) )
                i -= 1

            # Sort in descending order
            rank.sort(reverse=True)

            if rank[0][0] == 0:
                # Nobody replied
                self.deferred.callback(('no_nodes', None))

            else:
                # Return the name of the failure which occurred most
                self.deferred.callback((rank[0][2], None))