In one of my college courses I learned about the death of Socrates, who was not a particularly religious man. Before his execution, he explained that he had no fear of death, because what death is is not known. The unknown should not be feared, simply because it is not known whether it is good, or bad. Or something like ...
Well, supposing his logic to be satisfactory, there's just one problem ... modern science has told us exactly what death is. Oblivion. You, as a thinking entity, cease to exist.
I had the thought this night, what if I were on my death bed, with nothing but regrets to comfort me? If I were an atheist, how would I cope with that? My memory immediately recalled the story of Socrates, and came to the conclusion above. How would an atheist, like Socrates, deal with death knowing now that death means oblivion?
TL;DR: How do you think an atheist should cope with death, if one regrets how one lived his or her life?