Fixed the demos to handle Alt+F4 correctly
Merge pull request #805 from Niektory/master

Fixed the demos to handle Alt+F4 correctly