@classmethod
def send_exit_with_code(cls, sock, code):
    """Send an Exit chunk over the specified socket, containing the specified return code."""
    encoded_exit_status = cls.encode_int(code)
    cls.send_exit(sock, payload=encoded_exit_status)
