'Extend EditorWindow.close()'

def close(self):

    if self.executing:
        response = tkMessageBox.askokcancel('Kill?', 'The    program    is    still    running!\n    Do    you    want    to    kill    it?', default='ok', parent=self.text)
        if (response is False):
            return 'cancel'
    self.stop_readline()
    self.canceled = True
    self.closing = True
    return EditorWindow.close(self)
