The company behind M&M’s and Snickers is closing a Missouri facility.