Make baremetal work as same as Virutalbox

Made Teefaa to try greceful shutdown before trying power off for both Virtualbox and Baremetal. For doing that, I added ensure_power_off function.