avoid errors by only sending via datachannels when channel is open; see issue #10