added http connection exceptions handling