Disable kvm_record when vm need to be shutdowned or reset. A flush operation
is still necessary to get the whole log.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
For debug, not ready to commit

Signed-off-by: Le Tan <tamlokveer@gmail.com>