Provato anche con:
self.close()

ma nulla non mi chiude il browser.