Added main menu,
added asdk before close.