handle polkit popup for shutdown and reboot