diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 2eb64ef2372..9f88ae7a7d5 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -2195,6 +2195,11 @@ class CookerParser(object):
                    self.result_queue.get(timeout=0.25)
                 except queue.Empty:
                     break
+                except KeyError:
+                    # The restore state from SiggenRecipeInfo in cache.py can
+                    # fail here if this is an unclean shutdown since the state may be been
+                    # reset. Ignore key errors for that reason, we don't care.
+                    pass
 
         def sync_caches():
             for c in self.bb_caches.values():
