Hot water isolating valve, when try to close the stem comes out
The parts below this stem have corroded off. You will need to turn the water ahead of this valve even if it means shutting down the whole water system. If that is impossible because it is in a hospital or a production line setting, then you could freeze the line with dry ice or with a freeze kit as long as the flow can be stopped long enough to get the line to freeze.