added shutdown of vm