catch thrift connect exception