Fix #115 - Don't immediately switch back to HTTPS when we know it can't connect