safe and clean exit
Task threads treating tasks