My grandmother has not wanted to go on for 15+ years now after my grandfather died, yet she's still here, and doing relatively well for a 95-year-old.
I definitely think there's a correlation between your mental and physical health, but it's definitely not a simple one.