fix bug SEGFAULT after calling #close on the game, introduced by #39