Application Backup Restore

In our application, we have the ability to restore the entire application database. When the restore is completed, we start essential application initializations. However, Hangfire sits there logging errors about forcefully losing database connections, etc. What is the best way to replace a Hangfire database while running?