Send the button release to the popup, always
Don't send the popup_close before 500 msecs later than the creation time
Hide the popup window on popup_close, don't delete it