Instead of having to specify the duration of the extraction, can we just let the programs run until the user hits control-c or until the command line tool can no longer connect to the process being monitored?  Note that you'll probably have to change the Extractor to optionally create the extractor thread/task as a non-daemon.