I saw this movie about 6 or 7 years ago, it was definitely older than that though.
It takes place on a medical transport spaceship that crash lands on an alien world while the ship was on its way to deliver vaccines to another planet. The main character is male and white and for some reason I remember him looking like John Stamos from Full House. He has a daughter on that planet who is in need of the vaccine.
The ship crashes and they are stuck on the surface of this gassy alien world when the local wildlife starts to attack. The aliens are a parasite creature that attaches to a human and injects them with a dream serum that makes them dream and babble on about their dreams, in a coma like state. During the first attack the lead character is grazed by one of the terrors and begins going through bouts of dream like state.
Herein lies the main dilemma. On one side of the dream, his ship was found and rescued and they delivered the medicine and he and his wife and child live happily together, but when he goes to sleep he enters a dream where he is back on the ship, having never been rescued. In this consciousness his world tries to convince him that it's just PTSD from the ordeal. While in the other side he is still on the ship having never been rescued and the (two?) crew members left try to convince him that the former "happy" life is the dream, and they still need to escape.
He ultimately decides to go with the second world and launches an escape pod abandoning his comrades and soaring into space with the medicine while saying "I made it, I did it, I saved her"
The camera pans out and it is shown that he has always been dreaming and that everyone on board the ship is also infected just laying around murmuring the dream like state. And that the ship was lost and not recovered.
Does anyone happen to know the name of this film?