Better connection closing, by counting how many channels are outstanding.
Remove unneeded ticker as channel closing is sufficient.