An elementary school within walking distance of a major chemical plant will close ahead of the 2025-26 school year.