The reasons for the closures range from high bacteria levels to dangerous algae blooms.