Added unit of work semantics to command handlers