1) Refactored to start catching the exceptions and properly dispose an instance of iwd 2) Switched to list_devices with wait option