unregister_task(): Print what caused the task to shutdown.