Problem: Wallet encryption ignores a failed database rewrite after encrypted key records have been committed. Old plaintext key material can remain in unused pages without a warning.
Fix: Log the cleanup failure while preserving the successful encryption result. The warning advises moving funds to a newly created wallet before relying on at-rest encryption.