You can handle those issues with power, setting group policies, and inhibiting action when the power button is pressed (that includes keyboard power buttons). Nothing will stop the user from killing power by holding the physical power button down, except for changing that setting (if available) in the BIOS.
Computer config->Preferences->Control panel settings->Power options
Yeah man. Those were the good ol’ days, when X was called Twitter lol. Musk was absolutely spreading misinformation when it was still called Twitter also, before he owned it. I remember when he started talking complete rubbish about Dogecoin, making its price oscillate all over the place that whole week. One of his fanboys bought in…like hard. A 30-something year old, and he put his whole life savings into Doge at its peek, only to lose it all the night it was revealed that in 1998, The Undertaker threw Mankind off Hell In A Cell, and plummeted 16 ft through an announcer's table.