Not to be preachy, but the dog should be restrained in the vehicle such that it can't reach the hazard light control. We have a tether that we attach to a harness on the dog and a tiedown in the cargo area, and put the back seat down. A kennel would also work if fastened down (although probably not nearly as crash-friendly for the dog as a harness).