Fix send on closed channel bug
Fix send on closed channel bug

Signed-off-by: Chun Chen <54540ec6dd06a699de214f1a86e46d4d6b6f6581@gmail.com>
(cherry picked from commit a408790de8f317d79fb52acb3a5220846a0ffcba)

AdamOssenford/docker-pi,AdamOssenford/docker-pi,AdamOssenford/docker-pi