wait only 10 secounds each try, but try 20 times. (reduces wait time)
Put host into maintenance mode first thing, to prevent other vms from starting.
of course don't wait for the maintenance mode to be finished
change query to get ids of the machines to support annotations on machines
don't shut down machines that are already suspended
changed the wrong line
Merge pull request #2 from fbartels/master

Change order of shutdown operations; maintenance mode entered first, optimized wait times/number of times to wait, small fix to VM ID query, ignoring machines in suspended mode.  Thank you Felix!