Han Solo Was Supposed To Die In A Different Movie, Not Force Awakens
The movie ends with Han and Leia together, their relationship is something that builds throughout all three films, having them together at the end is the payoff. It gives the series emotion and heart, something that, by the way, was missing entirely in the prequels. Maybe Lucas changed Return of the Jedi for the wrong reasons, but it was the right move.