try:
                log.info('Stopping VM %s', name)
                if soft:
                    vm["object"].ShutdownGuest()
                else: