Close dialogs along with activities

Fixes [#2503](https://bugs.sugarlabs.org/ticket/2503).

This can't be a modal dialog (using GTK) as that behaves weirdly with the frame (you can't interact with the frame!!!).