'Closes everything.'

def _close(self):

    self.keep_checking = False
    msg = _('Do    you    want    to    quit    and    close    the    proxy?')
    dlg = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_YES_NO, msg)
    opt = dlg.run()
    dlg.destroy()
    if (opt != gtk.RESPONSE_YES):
        return False
    if self.proxy:
        self.proxy.stop()
    return True
