Avoid sends on closed channels
bugfix