<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="11.0.0-preview.2.26159.112" />

Microsoft.Extensions.Hosting.HostAbortedException

public sealed class HostAbortedException : Exception
The exception that is thrown when an IHost is stopped to indicate the Host is stopping gracefully. This exception should not be thrown or handled by user code.
namespace Microsoft.Extensions.Hosting { public sealed class HostAbortedException : Exception { public HostAbortedException(); public HostAbortedException(string message); public HostAbortedException(string message, Exception innerException); } }