@zqad in restore_from_file the vm is shutdown by the function
def creat():
...
        self.destroy(free_mac_addresses=False)
...
So kill_vm_gracefully in cfg file will not work.

So I sugguest to destroy vm before you record start_time and with 'gracefully=False'