Shutdown Hangfire when host in console

Hi.

I follow this link:
http://hangfire.discourse.group/t/how-can-i-use-dashboard-in-self-hosted-owin-console-application/1019

I have deployed Hangfire successed (hosted in console app) but when I exit console app and restart console, the number Hangfire Server increase. So how can I shutdown Hangfire when console app exit.

Thanks.

I am not sure if this is correct way but I have a similar console application for testing purposes and I shutdown it like below

    var defaultJobServer = new BackgroundJobServer(defaultOptions);
    System.Console.ReadLine();
    defaultJobServer.Dispose();