'Perform actions before parent main window is closed'

def closing_plugin(self, cancelable=False):

    self.save_history()
    self.set_option('zoom_factor', self.pydocbrowser.webview.get_zoom_factor())
    return True
