'Cleanly exit the editor.'

def quit(self):

    try:
        self._quitfunc(self._caller)
    except Exception as e:
        self._caller.msg(_ERROR_QUITFUNC.format(error=e))
    self._caller.nattributes.remove('_eveditor')
    self._caller.attributes.remove('_eveditor_buffer_temp')
    self._caller.attributes.remove('_eveditor_saved')
    self._caller.attributes.remove('_eveditor_unsaved')
    self._caller.attributes.remove('_eveditor_indent')
    self._caller.cmdset.remove(EvEditorCmdSet)
