fix CLI crash on game completion