Introduce a Formatter baseclass with fileno and close methods
Allow restarting capture from Wireshark

This uses the poll framework to detect errors (i.e. all readers closed)
on the fifo and reopens the fifo and serial in this case (causing it to
wait for a new reader).