Of all the movies, only Star Wars and Jedi had real endings.
TPM does as well.
TPM was always meant as part one of three. Star Wars could have very easily been a standalone and Jedi was the last for a long time.
STAR WARS was made to be a standalone film as not one soul involved thought there would be a sequel.