When the retries for the OTA timeout are exhausted, the record function will now raise an Error. The restore function now checks if a file exists before opening it. Furthermore, the restore function now catches KeyError and propagates a Warning, then it continues with the next device.