SONAR-4898 fix handling of server early termination