fixed missing newline char when stopping task