Is there a way to react on "Application run failed", e.g. in case when database is unavailable?
In my case the desired behavior is to exit the JVM process, so the docker container will be automatically restarted
I tried to listen for "ContextClosedEvent", but it does not work for the startup failure case.