This improves the shutdown process so that there is no change of blocking if the sender runs close without having emptied the channel.
This improves the shutdown process so that there is no change of blocking if the sender runs close without having emptied the channel.