Close the popover when the application resigns active