some improvements
close ua channel only when the same remote channel inactive