Specifically when setting game.scr from within Lua. Some cleanup stuff currently happens when an input is pressed, before switch_screen is called, but Lua bypasses this.
game.scr
switch_screen