Viability of the upflow anaerobic sludge process for risk management of wastewater treatment