popups "popupafterclose" event fires off twice?

popups "popupafterclose" event fires off twice?

I noticed that popups will fire the popupafterclose when you close the popup AND when the page is switched to another page (when the popup is already closed). Should it be this way?