He will kill himself in the last frame of the show. After everyone else he has traveled with has been killed, turned or eaten he will take his own life with one single shot to the temple. There is no survival. There is no cure. There is no safe place. There is only the walkers or death. Rick will realize this after he has to kill Carl before the infection kills him after being bitten. This is how the show will end.