BUG archive not closed on key error