Added exception handling to wemo