added try catch to simplewaydialog in asynctask to avoid window leaked error