On the automorphism group of a closed G2-structure