1. An apparatus, comprising: a memory; a processor coupled to the memory operable to: store in the memory one or more transaction control primitives, wherein the one or more transaction control primitives perform a controlled transaction of a management task in a managed device, the controlled transaction comprising one or more checkpoints between a starting point and an ending point of the controlled transaction; map a transaction control primitive, for returning the managed device to a state preceding a transaction of the management task, to a device management command; transmit the device management command to a managed device; undo one or more executed device management commands associated with the controlled transaction by causing the controlled transaction to return to a preceding checkpoint; and re-execute one or more device management commands subsequent to the preceding checkpoint.