better handling of task_monitor stdout messages