very slim race condition between a channel closing and a waituntil unregister was being handled improperly and is now fixed