Unai Emere was warned before he got sacked.