'Close an ssh client and remove it from free_items.'

def remove(self, ssh):

    ssh.close()
    if (ssh in self.free_items):
        self.free_items.remove(ssh)
        if (self.current_size > 0):
            self.current_size -= 1
