Unfairness as complex system failure