ENG-6915: When connecting a new client in the JDBC driver, call
close() on the client if it doesn't connect to the cluster to avoid
leaking threads.
(cherry picked from commit 2db97d460251134edeb3d51cca264a4b9c79383c)