Some Christians say, "The Lord saved me while I was yet a sinner."
Some Buddhists say that we are already enlightened but have not yet realized our enlightenment.
Secularists might say, "It is good to be alive but we screw it up."
These are three different expressions of a single psychological dichotomy between a "basically OK" level (saved, enlightened, alive) and a "some work still needing to be done" level (stop sinning, realize enlightenment, stop screwing up).
Christians are grateful for their salvation.
Buddhists are glad of a human birth.
We can all be grateful to be among the living.
I am additionally grateful that the personal consequences of my "wrong actions," in the Buddhist sense of that phrase, have not been as bad as they might have been, at least not yet.
I apologize to many others for the effects of those actions.
If there are any gods involved, then I am grateful to them although, if Fortuna is the only deity involved, then she is to be neither entreated nor thanked.