I think killing off both Han & Leia was part of George’s plan for ROTJ back during the ESB days, when he was still thinking about continuing with a Sequel Trilogy set immediately afterward.
And I’ve said before, the “Han dies, Leia becomes queen, Luke wanders off” idea is basically the ending of Mad Max Fury Road, in regards to the Nux/Furiosa/Max character arcs.