Added writeHypervisorSettings to be called on exit