I'm not sure if we need to call `emitItemsOutOfWindow` in `onError`. Which one is more reasonable?