CORE-5111 trap the connect exception and log msg