Actually error out when code/loop buffers are exhausted.