'Extend EditorWindow._close(), shut down debugger and execution server'

def _close(self):

    self.close_debugger()
    if use_subprocess:
        self.interp.kill_subprocess()
    sys.stdout = self.save_stdout
    sys.stderr = self.save_stderr
    sys.stdin = self.save_stdin
    self.interp = None
    self.console = None
    self.flist.pyshell = None
    self.history = None
    EditorWindow._close(self)
    return
