Fix bug in export tests where the processor and generation race on shutdown and the processor might not discard a buffer just passed to it