One of my all-time favorite space movies was Robinson Crusoe On Mars, starring the cinematic one-hit wonder Paul Mantee as the stranded astronaut Christopher Draper. There's nothing wrong about the script (back in the Sixties, it was plausible that the Martian environment could be made survivable with luck and ingenuity).
The hero aids the escape of a humanoid slave being used by alien mineral prospectors, and whimsically dubs him "Friday." The aliens are near enough to finishing that (not noticing Draper himself) they don't care what the expendable menials do. In fact, they callously dispose of all their chattel slaves, assuming that Friday will die on his own.
In the happy ending, a rescue ship arrives to pick up Chris and Friday. The mineral pirates already being gone, the retrieval crew faces no peril from those genocidal interstellar miners. Happy ending; again, there's nothing that needs to be corrected, it just needs a follow-up, twenty minutes max.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~` .
Chris and Friday are covertly interviewed by the President, the Vice President, the Secretary of Defense, the Joint Chiefs of Staff, and carefully vetted N.A.T.O. delegates. They discuss the probable motives of the aliens, e.g. are they leaving Earth alone because they can't survive our atmosphere and gravity, or simply because Earth has nothing they need.
Thence a sequel: Robinson Crusoe Returns To Mars.