make sure connecting to a closed channel has the proper behavior