fix thrift connection bug not setting the error properly, fix #160