All the articles with the tag "fundation".
This tutorial shows you how to provide the option to the user to re-run your startup logic if it fails.