Lesson learned: “The Walking Dead,” which incurred a heaping helping of fan fury at the conclusion of the sixth season, declined to repeat the mistake at the end of the seventh Sunday night. The result: A conclusive wrap that left no major question unanswered, no expected storyline unresolved.

And so ladies and gentlemen of the jury, in summation ...”The First Day of the Rest of Your Life” was a reasonably satisfying finale.

“The Walking Dead” really had no choice after the sixth season finale, when Negan (Jeffrey Dean Morgan) walked the line, wondering — and chattering incessantly — about who was about to meet Lucille, his barbed wire bat. Then, fade to credits and AMC spent the rest of 2016 playing the oldest and weariest of TV head games (who did Negan kill?). The backlash also began and TV’s most popular show found itself crouching in a defensive posture. Fans were infuriated and a crack seemed to appear in the edifice. Could “TWD” be in trouble?

“TWD” was not, and there’s always another way to look at fan fury. If they didn’t care, then the show really would be in trouble.

But “TWD” addressed all of this Sunday, and even figured out a way to make the expected the unexpected. Let’s take the most expected, as an example. Sonequa Martin-Green (who plays Sasha Williams) was leaving this season under any circumstance because she’s the lead in “Star Trek: Discovery,” expected to launch this fall.

But how to handle the expected? The old coffin gambit, of course. The opening shot was masterful, really. Sasha is in the dark, listening to music. She has a Mona Lisa smile, a mist of sweat covers her face. She’s lost in thought or in pleasure. Either way, the image piles on the questions, each of which would be answered in time.

advertisement | advertise on newsday

But why a coffin? Why not? It’s just another prop on the stage that Negan occupies, and he likes his props, along with his words. The idea of transporting Sasha back to Alexandria in a coffin must have deeply appealed to his sense of a perfectly ordered universe. Someone will die, and Sasha will choose, and she will step out of the coffin to make room for the person who will find eternal rest there.

She steps out of the coffin all right.

The complicity of Eugene (Josh McDermitt)? That worked as well. By proffering the suicide pill to Sasha last week, it looked superficially like just another act of weakness and duplicity. But he had ulterior motives, as it turned out. Eugene became heroic in the moment, standing aside while the coffin lid is opened, knowing full well who or what was about to come out. Eugene has a role yet to play in this drama – a major one.

The return of Abraham (Michael Cudlitz) was effective, too. Another surprise in the moment, but given Sasha’s fate an obvious one. This worked especially well because it explored character means and motive, and the course of lives, even the course of an entire show. Sasha could have held an interior “to be or not to be” dialogue about her choices, but having Abraham there to walk her through them was the best part of the entire episode. There’s seldom anything that qualifies as “love” or “human tenderness” on”The Walking Dead,” but those were the moments that came closest over the past seven seasons. They also gave vitally needed closure to two vitally important characters, Sasha and Abraham.

Closure is something you seldom get in “TWD,” either, and closure was also needed Sunday night.

Meanwhile, a moral to this bleak, godless fable is never offered either. But surely that came in just a few words from Abraham: “Putting our ass on the line for someone else. You said it before, oh my that is living...”

The other surprises were good, also appropriate.

Jadis (Pollyanna McIntosh) and the Scavengers turn on Rick (Andrew Lincoln)/Rick’s People? Surely a group called “the Scavengers” could not be expected to do anything else, right? But the moment when they did turn worked. The charge of the calvary — the Hilltop Colony, the Kingdom and so on — was expected, and expected at the precise moment it happened.

advertisement | advertise on newsday

But then, there was also Chekhov’s gun. You know Chekhov’s Gun – the principal that if a gun appears or is mentioned in the first act of a play, you can be certain that the gun will be used by the last act of the play. And just as Negan was about to play ball again, with his Lucille hovering over Carl (Chandler Riggs), the trajectory of the bat all but certain ... Shiva, the tiger, finally joins the play, and the action.

We all knew Negan wasn’t going anywhere this season and we all know a Rick/Negan showdown might not even reach a climax in the eighth season. Negan’s crimes are too monstrous, the vendetta too spectacular by this point. “TWD” could work this story even into the ninth.

But we did at least finally get a decent season wrap for “The Walking Dead,” without head games or hanging cliffs, or stupid guessing games. Fans demanded as much.