fix issue TTS-2158: some TCs stuck during connect stub server