Restore failed for Server 'ServerName'. (Microsoft.SqlServer.SmoExtended) System.Data.SqlClient.SqlError: Exclusive access Could not be Obtained Because the database is in use.(Microsoft.SqlServer.Smo) | issuesandfixes
Solution: Can't Close Existing Connections on Restore