'A simple exit which will ask for confirmation.'

def exit_faraday(self, button=None, parent=None):

    if (not self.window.do_delete_event(parent)):
        if (parent is not None):
            GObject.idle_add(parent.destroy)
        GObject.idle_add(self.window.destroy)
