Fix crash when closing and reopening window.
Use current SDK.
Enable App Sandbox.