engine: Persist command at end of execution

Persist command at the end of command
execution

Change-Id: I1610e115fb215b9f2dcd587a41c748580f98260d
Bug-Url: https://bugzilla.redhat.com/1127774
Signed-off-by: Ravi Nori <rnori@redhat.com>