Fixed leaking socket in ident check when ident connect fails