[CXF-5559] Preventing the infinite loop in case of connection exceptions during the async calls, patch applied on behalf of Anthony Communier