The code now uses IApplicationLifetime and implements the methods.
Libuv is no longder the default in .NET Core 2.1.