What factors are considered when closing schools?

What factors are considered when closing schools?