Better handle game shutdown

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>