Print quitting message from only task 0