close tasks controller