close thrift connections cleanly