bug fix: close pay/close dialog after it finishes