Just aiming for length rather than quality of life may not be the best idea, but usually people aiming for a long life are also aiming to be healthy as long as possible.
At least if you're alive, you've probably got the option to end it if you make that decision, but once you're dead that's it (not allowing for reincarnation).