The book version of The Martian essentially ends with Watney's rescue. The movie version of The Martian takes that a step further by providing an epilogue for the characters, showing what happened to them some time after the Mars mission ended.