I think there is one in the behaviors you could do client side with button onclick, or you could do it server side, but you would have to post to the page when they cancel, which seems like it wouldn't make sense.
But then you could do the conditional region server side to remove the code that pops up the window based on the set cookie.