Make notification tasks be cleaned up after closing the popup.