Windows bar issue

I think we all know the windows bar issue that when you hold on it your game froze and same for your game character.

I know that there is nothing to turn this off but is there a way to detect a player that is doing this and then kick/respawn this person? I am creating a game where this is a big problem and I would appreciate some fixes for this problem!

(not 100% sure if this is the correct category)