def METHOD_NAME(self):
    """
    Stop the currently running game.
    """
    logger.debug("Stopping script.")
    if self.runner:
        self.runner.stop_process()
        self.runner = None
    self.view.remove_python_runner()