usb-redir: Don't try to write to the chardev after a close event