The school said a decline in demand for boarding education and wider costs contributed to its decision to close.