call ejoy2d_close_lua first in ejoy2d_game_exit