console output which thread finished