more error logging; tiny code cleanup
more error logging; tiny code cleanup

languagetool-org/languagetool-browser-addon,languagetool-org/languagetool-browser-addon,languagetool-org/languagetool-browser-addon,languagetool-org/languagetool-browser-addon