Industrial wastewater management