fix channel close order

Signed-off-by: Joseph Pugh <leetbulb@gmail.com>