https://github.com/dotnet/extensions/issues/1836 нашла интересный ишью про хостед сервисы, мне одной кажется что
Nothing is planned but there are multiple feature requests:
Add a new primitive that will cause the host to stop on failure.
Add an API that allows an application to stop the host with an Exception (and expose it on the Host as well)
Не совсем то что нужно?