channels/rdpsnd: fix crashes on termination