in Return of the Jedi, Darth Vader eventually lets go of his rage and anger and allows Anakin Skywalker to die. It’s this moment that he is passed on to the other side of the force to become a force ghost, which we see later on. However, if George Lucas wanted to keep him alive, then this is how it could have easily been done. A power Vader has used many times in the comics.