def close(self):
if self._transport is None:<EOL><INDENT>return<EOL><DEDENT>self._transport.close()<EOL>self._transport = None<EOL>if self._agent is not None:<EOL><INDENT>self._agent.close()<EOL>self._agent = None<EOL><DEDENT>
Close this SSHClient and its underlying `.Transport`.

.. warning::
    Failure to do this may, in some situations, cause your Python
    interpreter to hang at shutdown (often due to race conditions).
    It's good practice to `close` your client objects anytime you're
    done using them, instead of relying on garbage collection.