Catch IO Exceptions in languagetool-server when connection has finished