Cat-back system with electronic valves