Make the control device exclusive.

On device close discard any unread data and write global PCAP header to the
buffer.