Handle scene.visible and scene.fullscreen; add exit() function