Interstellar
Cooper is trying to save planet Earth from the damaging effects of climate change. In the end, Cooper survives the fifth-dimensional tesseract collapse and tries to go find his elderly daughter on earth. However, the alternate ending has Cooper die in the collapse and his data sent back to his home planet.