Fixed errors with optional pause: do not pause after last vmdk of vm. Added more debug messages.