
In case there are any internal ways the dialogue can close itself without calling its own close() method, it’s probably better to do all our cleanup on a handler for the `closed` signal instead. This should introduce no functional changes except ensuring the polkitAgent cleanup is always done. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/357