Teacher thanked for rescuing autistic boy