'The GTK user interface calls this when a scan has been stopped
(or ended successfully) and the user wants to start a new scan.
All data from the kb is deleted.
:return: None'

def cleanup(self):

    self.uri_opener.restart()
    self.uri_opener.set_exploit_mode(False)
    self.exception_handler.clear()
    kb.cleanup()
    parser_cache.dpc.clear()
