g_main will return non-zero for game-over