"Logan" of course marks Hugh Jackman's farewell to Wolverine, but the actor very nearly walked away from the role eight years ago under very different circumstances.

RELATED: Wolverine's Claws Gave Hugh Jackman Scars

The character's first solo film, "X-Men Origins: Wolverine," arrived in 2009 under a dark cloud, beginning with the leak of an unfinished workprint and then continuing with largely negative reviews. Although the "X-Men" spinoff went on to earn more than $373 million worldwide, Jackman admits the situation took its toll on him.

“I couldn’t see what the next thing was,” he told Entertainment Weekly. “I don’t know what else to do. I don’t know where to go.”

“I knew people liked the character. Not all the fans like that first 'Wolverine,'” he continued. “They’re very vocal with me. Good or bad, they tell me. It’s kind of a family I have. ‘What were you thinking?! I love you, man, but that was …'”

RELATED: Surprise! "Logan" Actually Introduces Another Classic Marvel Mutant

He credits initial conversations with "Black Swan" director Darren Aronofsky, who was originally attached to helm what would become 2013's "The Wolverine," with helping him to realize "there's a whole other way to do this character."

As frustrating and disappointing as "X-Men Origins: Wolverine" may have been for Jackman and fans, it did of course introduce Ryan Reynolds as Deadpool, albeit as a very different Merc With a Mouth then we saw in his hit 2016 solo film. The first "Wolverine" also provided Reynolds with years' worth of jokes a the film's -- and Jackman's -- expense.

Directed by James Mangold, "Logan" also stars Hugh Jackman, Patrick Stewart, Boyd Holbrook, Richard E. Grant, Dafne Keen and Stephen Merchant.