Function to close the open dialog box.
QTP: MobileDevice("device_name").MoWindow("Dialog").Close Visual Studio: device_name.mo_Dialog.Close();