Added a performance fix. close thrift connection on destroy.