Added callback when popup is dismissed.