Make sure proxy is valid and can connect with it before saving it