I'm writing an app that runs in fullscreen mode. It's still in it's beginning phases and crashes quite often. When it crashes it won't exit out of fullscreen mode and i can't quit out of the app. The app screen just freezes and stays in fullscreen mode. I can't force quit the app, can't switch between desktops, the only thing I am able to do is force shut down my computer. I would prefer not to do this everytime there is an error in my app. Any suggestions?