channels[0] is the connection object, so do not close it yet