Fix crash when closing and reopening window.
Use current SDK.
Enable App Sandbox.
Merge pull request #5 from jfeser/master

Fix crash when closing and reopening window.