Run functions when your tasks pass or fail