So it looks like I reinvented the wheel when it came to my proxy autoconnection system that I set up for Windows. Turns out I could have just created a PAC file that would just skip the proxy if it failed, and we could have even set up the white and black list to ignore the sites instead of decoding the information.