def mark_bad_peer(peerid):
    """
        Mark the peer peerid as bad. This is typically called when an
        error is encountered when communicating with a peer. I will
        disregard any existing peer => share relationships associated
        with peerid, and will not attempt to assign it any more shares.
        """
