Uplink: use serverid for login command again
ssl: Fix resource leaks when freeing SSL connections and when
SSL connection creation fails