remove stale tab if the task is completed