SONAR-4898 - fixed lagging exit of sonar-application