Fixed bugs with the URLError indicator LED and cleand up the power switch threading.