Enabled the closing of the to-do list even if some tasks are not
checked.