set connection state ~atomically, preventing race condition in setup threads
Merge pull request #125 from jwm/ec2_vpc_atomic_connect

Set EC2 and VPC handles atomically