Implemented basic rollback strategy for tasks.