Bug fix to account for possibility that the AWS instance is not listening for connections