1) wait for a device to become available 2) add try, except block for the clean termination of iwd in the case of a failure 3) increase the max execution time to help with valgrind