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

For instance if the app process inside the container dies returning exit(1) for instance in the current service definition created by the controller the state of the app will be `failed`.
With this change the idea is to restart the app automatically.

automatic restarts #467 #1282