fixed up the stop.ec2.machine function