Add connect-domain to trap any unexpected error.