pass along proxy settings to curl command if proxy set, and if they fail don't just end the script altogether