Fix tear down of SQL Server procedures