Improve VM shutdown for Sauce Labs connector

- Add retries for VM shutdown when talking to the API.
- Add 'ensure' to make sure the SSH connection is not reused.