not sure if it's a godot thing, but clicking on anything outside of the window, or even minimising the program causes it to stop.