add try to prevent oserror when 'device not configured'