If your plants were young and the leaves were yellowing it would more than likely be lack of nutrients. Since your plants are almost done, it is a part of ripening. I save all of my late stage leaves, yellow or green and make bubble hash out of them.

dai*ma