Close connection after each failed connect attempt

Currently the ssh lib code does not explicitly close the Transport
objects on auth failure. It is possible that paramiko is leaving the
connections open on each auth attempt which is crashing dropbear in
cirros guests. This commit adds the close() call on failure to make
sure we don't leave a dangling connection open.

Change-Id: Ida499a80be184b1af9b53d4ab27a8abbc4d59898
diff --git a/tempest/lib/common/ssh.py b/tempest/lib/common/ssh.py
index 5e65bee..657c0c1 100644
--- a/tempest/lib/common/ssh.py
+++ b/tempest/lib/common/ssh.py
@@ -111,6 +111,7 @@
             except (EOFError,
                     socket.error, socket.timeout,
                     paramiko.SSHException) as e:
+                ssh.close()
                 if self._is_timed_out(_start_time):
                     LOG.exception("Failed to establish authenticated ssh"
                                   " connection to %s@%s after %d attempts",