fix exception scope and some improvements
fix exception scope and some improvements


languagetool-org/languagetool,lopescan/languagetool,languagetool-org/languagetool,jimregan/languagetool,jimregan/languagetool,janissl/languagetool,janissl/languagetool,lopescan/languagetool,janissl/languagetool,lopescan/languagetool,lopescan/languagetool,lopescan/languagetool,meg0man/languagetool,jimregan/languagetool,janissl/languagetool,janissl/languagetool,meg0man/languagetool,languagetool-org/languagetool,meg0man/languagetool,jimregan/languagetool,languagetool-org/languagetool,meg0man/languagetool,janissl/languagetool,languagetool-org/languagetool,jimregan/languagetool,meg0man/languagetool