X-rays generated by slamming accelerated electrons into a metal plate turn off immediately once power is removed. There is no residual radioactive decay, because there were no unstable or decaying isotopes at any point in the process. It's not a nuclear process. It does not involve the nucleus.
In contrast, the Goiânia accident was the result of beta radiation from a pile of decaying Cesium 137 that could only be contained, not turned off.
Not every discussion about something in the physical world needs to start with a low effort comment about how you can die by cranking it to 11 and then abusing it.
Please don't spread around misinformation.
Once the power is off, there is no more radiation from the internals of an X-Ray Machine.
Heck, we have portable X-Ray dental cameras now.
They are still dangerous, but orders of magnitude lesser than true radioactive elements.