Vidui

A very sick person who might die soon should say a special confession (vidui). It is not a problem to say it multiple times during one's life.
Note If the person cannot say vidui, someone else says it for the person.