Hello, and welcome to mac-help.com! If you have an application that is stuck, press command-option-escape simultaneously to Force Quit any applications that are open. (Force Quit is also under the apple menu.) If your entire mac is stuck, hold down the power button for about 8 seconds to force your mac to shut down. I don't know about windows but I hope this helps you out.