fixes CC-355: close rpc client after each pool discovery attempt