Disable interrupts while removing tasks from task list