Allow the popup to close before reverting the text on the button.