The decision to close the Main Library temporarily came after contractors told city officials the building would be too unsafe for visitors.