It ends with a daring rescue of Mark Watney from Mars. He barely makes it to the ship but ends up safe and happy, with the entire crew surviving.