Move game shutdown to input

Less likely to fail and prevent a normal shutdown than any other thread
Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>