There is a shortcut "alt + . (dot)" (maybe ctrl/cmd depending on platform), that will break the current execution and show the debugger (which you can then close) - useful if you have infinite loops and so forth.
Is there any way to get back the Pharo image working when it freezes without closing the Pharo image because many times the work isn't saved and then it costs a lot restarting the pharo image?