When the YubiKey is not plugged in while closing the database and one decides to save the changes, the error message ("Unable to issue challenge-response") will appear but closing the database will proceed afterwards, losing the previous changes since the last save.
Steps to reproduce:
- Open challenge-response secured KDBX.
- Change any entry (remove, add, etc.)
- Unplug YubiKey
- Try to close the database, selecting Yes when asked if you want to save changes.
- Closing the database will proceed after an error message. Changed entry from 2. will be lost/unchanged.
Expected Behaviour:
Stop database close if an error during saving occurs. The user can re-plug his YubiKey afterwards, save and retry to close the database afterwards.