These patches allow mythccextractor to handle a SIGINT or SIGTERM
gracefully.  It informs the worker to stop processing its input and write
out its buffers.  This is to ensure that a CTRL-C doesn't cause the program
to drop data that is buffered but not yet committed to disc.