The purpose of the task is to call a function when the timer expires ie set_task(time,"function"). If you want your menu to do something but not do the function that is supposed to be called at the end, give the set_task a task id and use remove_task (go look in the funcwiki if you don't understand).