What do you expect from us?
We cannot help you with a problem if we can't find out what the problem is in the first place. If you reboot your computer, you should be able to close the game. I'm fairly sure your entire computer is about to crash. You call it a bug in the game, but I suspect its something on your windows.
Can you reproduce the bug? As in: always at spot X, the game crashes?