thanks to MrCSUI, my problem was the same but I had the error only in build server. only add a throw to program.cs and test again. the error will shows up.
catch (Exception ex)
{
Log.Fatal(ex, "Unhandled exception");
if (enviornment == "IntegrationTest")
{
throw;
}
}
finally
{
Log.Information("Shut down complete");
Log.CloseAndFlush();
}