SONAR-3677 fix lifecycle of language recognizer