simplify waitshutdown
unmount image when using lxc