Added some error handling to wemo switch component.