feat(controller): restart the app if there is a failure.

replaces #2013