try-finally to close client.