A really good author can write a book in a series and close it with an ending. His readers will still be anxious to buy the next book.
A not so great author writes a book with an open ending trying to force readers to buy the next book in the series.
In the latter case the story and the writing are usually not worth it.