close all channels on shutdown