When demolishing a building where are the utilities shut off, capped or controlled?

When demolishing a building where are the utilities shut off, capped or controlled?