thrift client now properly disconnects from remote server