Removing non-working code from wrapper..Exiting retry loop when vm ends ...

...in error state...handling exception in create_keypair