Here is my three step process:
1. Accept that you feel bad about failures.
2. Accept that what happens did happen.
3. Re focus on the present. Today is today.
A few key notes:
* Get re-started despite how little you can do.
* Whatever it is, just do it.
* Be persistent.
This works.