To close the connection invoke the IpClientSsh#disconnect method. You should always close connections once you are finished with the session.
Example
// close connection
tunnel.disconnect();