we weren't removing closed channels from the mainloop.  this fixes the case where ambd goes to 100% cpu if the socket closes on the client side