prevent send() on closed channel

issue fixed: https://github.com/mvayngrib/WebRTC-Experiment/commit/2478c1c2c1ecc836fdcbabb7025e03a2f710f03e#commitcomment-3146849