Avoid blocking when closing channels.