prevent undefined exception on undo of attach new aT
Minor refactor of disconnection state
Merge pull request #558 from latin-language-toolkit/hist_fix

prevent undefined exception on undo of attach new aT