Changed action to end tasks