This was after a lengthy battle, which took place after Wolverine had already fought off an army of Donald Pierce and Rice’s men.
Deciding that you are going to kill Wolverine is one thing.
But it was X-24 that finally did him in.
As you know — because if you made it this far, you better have seen the movie — Mangold uses X-24, played by Hugh Jackman in a bizarre and Freudian twist, to impale Logan on a jagged tree stump.