General Mills has said it will shut a plant in west Chicago, affecting around 500 jobs.