Refs #5377 - adding task example and fixing canceled tasks