[FIX] Crash when an error occurs while handling key updates.